package com.dingding.service;

import com.dingding.common.ServerResponse;
import com.dingding.pojo.BookInfo;
import com.dingding.vo.BookDetailVo;
import com.github.pagehelper.PageInfo;

/**
 * Created by 张柏桦 on 2017/8/24.
 */
public interface IBookService {

    ServerResponse saveOrUpdateBook(BookInfo bookInfo);

    ServerResponse<String> setSaleStatus(Integer bookId,Integer status);

    ServerResponse<BookDetailVo> manageBookDetail(Integer bookId);

    ServerResponse<PageInfo> getBookList(int pageNum, int pageSize);

    ServerResponse<PageInfo> searchBook(String bookTitle,Integer productId, int pageNum, int pageSize);

    ServerResponse<BookDetailVo> getBookDetail(Integer bookId);

    ServerResponse<PageInfo> getBookByKeywordCategory(String keyword, Integer categoryId, int pageNum, int pageSize, String orderBy);

}
